<?php

	require('includes/connect.php');

	$sysMail = $_POST['sysMail'];

	$conMail = $_POST['conMail'];

	$persMail = $_POST['persMail'];

	$user_id = $_POST['user_id'];

	$qry = mysql_query("update mail_settings set `system_mail` = '$sysMail', `contact_mail` = '$conMail', `promotional_mail` = '$persMail' where user_id=".$user_id);


	header('location:settings.php');

?>